//类方法

public class demo3_1
{
    //变量
  int sum1;
  int sum2;
     //方法
public void suChu(){
    System.out.println("sum1的值为"+sum1);
    System.out.println("sum2的值为"+sum2);
}
public int jiaFa(int a,int b){
    int c=a+b;
    System.out.println("加法结果为"+c);
    return c;
}
public int chengFa(int a,int b){
    int c=a*b;
    System.out.println("乘法结果为"+c);
    return c;
}  
   
}    


 
    
